/**
 * 
 */
package servlets;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import metier.Article;
import persistence.Strategie;
import persistence.DAO.DAO;

/**
 * @author hozakan
 *
 */
public class RegisterComment extends BaseServlet {

	/* (non-Javadoc)
	 * @see servlets.BaseServlet#specificDoGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	@Override
	protected void specificDoGet(HttpServletRequest request, HttpServletResponse response) {
		Article art = new Article();
		DAO dao = Strategie.getInstance().getDAOFactory().getDAO(art);
		try {
			dao.enregistrer(art);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	@Override
	protected void specificDoPost(HttpServletRequest request,
			HttpServletResponse response) {
		// TODO Auto-generated method stub
		
	}

}
